﻿do
	IGAS:NewAddon("IGAS_Studio")

	local _DB

	------------------------------------------------------------
	-- ScriptType
	------------------------------------------------------------
	_DB = CreateHelpDB(IGAS.GUI.Widget.CheckBox, "ScriptType")
	_DB:SetBaseHelpDB(CreateHelpDB(IGAS.GUI.Widget.Button, "ScriptType"))

	_DB:AddCodeHelp("OnValueChanged", [[Run when the checkbox's checking state is changed]], [[OnValueChanged(IsChecked)]])
	------------------------------------------------------------
	-- Function
	------------------------------------------------------------
	_DB = CreateHelpDB(IGAS.GUI.Widget.CheckBox, "Function")
	_DB:SetBaseHelpDB(CreateHelpDB(IGAS.GUI.Widget.Button, "Function"))

	_DB:AddCodeHelp("GetChecked", [=[Returns whether the check button is checked]=], [=[GetChecked()]=])
	_DB:AddCodeHelp("SetText", [=[Sets the text displayed as the button's label]=], [=[SetText("text")]=])
	_DB:AddCodeHelp("Enable", [=[Allows user interaction with the button]=], [=[Enable()]=])
	_DB:AddCodeHelp("SetChecked", [=[Sets whether the check button is checked]=], [=[SetChecked(enable)]=])
	_DB:AddCodeHelp("GetText", [=[Returns the text of the button's label]=], [=[GetText()]=])
	_DB:AddCodeHelp("Disable", [=[Disallows user interaction with the button]=], [=[Disable()]=])
	------------------------------------------------------------
	-- Property
	------------------------------------------------------------
	_DB = CreateHelpDB(IGAS.GUI.Widget.CheckBox, "Property")
	_DB:SetBaseHelpDB(CreateHelpDB(IGAS.GUI.Widget.Button, "Property"))

	_DB:AddCodeHelp("TrueText", [[the text to be displayed when the checkbox is checked]], IGAS:GetPropertyType("string"))
	_DB:AddCodeHelp("Text", [[the text to be displayed for informations]], IGAS:GetPropertyType("string"))
	_DB:AddCodeHelp("Checked", [[whether the checkbox is checked]], IGAS:GetPropertyType("boolean"))
	_DB:AddCodeHelp("FalseText", [[the text to be displyed when the checkbox is un-checked]], IGAS:GetPropertyType("string"))
end
